﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace HYBYSoft.Company.Models
{
    [MetadataType(typeof(Linkman_Metadata))]
    public partial class Linkman
    {
        [Display(Name = "联系人姓名")]
        [Required(ErrorMessage = "联系人姓名不能为空")]
        public string linkName { get; set; }

        [Display(Name = "联系人E-mail")]
        public string linkE_mail { get; set; }

        public class Linkman_Metadata 
        {
            public int LinkmanID { get; set; }
            public int CompanyID { get; set; }
            public string Name { get; set; }
            public string E_mail { get; set; }

            [Display(Name = "联系人电话")]
            [Required(ErrorMessage = "联系人电话不能为空")]
            public string Tel { get; set; }

            [Display(Name = "联系人QQ")]
            public string QQ { get; set; }

            [Display(Name = "联系人MSN")]
            public string MSN { get; set; }
        }
    }
}
